<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/21
  Time: 15:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <style>
        .a {
            position: relative;
            top: 100px;
            width: 60vw;
            margin: 0 auto;
        }

        #bottom {
            width: 100%;
            height: 180px;
            position: fixed;
            bottom: 0px;
            background-color: #2A2730;
            color: #FFFFFF;
        }

        #bottom p {
            text-align: center;
        }
    </style>
</head>
<script type="text/javascript">
    $(function () {
        $("#btn").click(function () {
            var password = $("#password").val();
            var repassword = $("#repassword").val();
            if (password !== repassword) {
                alert("密码不一致！")
                return false;
            }
        })
    });
</script>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">&nbsp;&nbsp;&nbsp;作业棒&nbsp;&nbsp;&nbsp;</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="NoticeServlet?action=page&pageNo=1">学生界面</a></li>
                <li><a href="HwServlet?action=queryHwStu">下载作业</a></li>
                <li><a href="HwServlet?action=queryHw">提交作业</a></li>
                <li><a href="StudentServlet?action=query">个人信息</a></li>
                <li class="active"><a href="pages/student/student_change.jsp">修改密码<span class="sr-only">(current)</span></a>
                </li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="UserServlet?action=logout">&nbsp;&nbsp;&nbsp;退出&nbsp;&nbsp;&nbsp;</a></li>


            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="a">
    <form action="StudentServlet?action=updatePassword" method="post">

        <div class="form-group">
            <label for="password">修改密码</label>
            <input type="password" class="form-control" id="password" placeholder="Password" name="password">
        </div>
        <div class="form-group">
            <label for="repassword">确认密码</label>
            <input type="password" class="form-control" id="repassword" placeholder="rePassword" name="repassword">
        </div>
        <button type="submit" class="btn btn-default" id="btn">确认修改</button>
    </form>
</div>
<%@include file="/pages/common/footer.jsp" %>
</body>
</html>
